﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Interfaces;
using Core.Interfaces.IDAO;

namespace Core.DAO
{
    public class CustomerDAO : AbstractDAO<ICustomer>, ICustomerDAO
    {
        public CustomerDAO(IConnection connection) : base(connection)
        {
        }

        #region Overrides of AbstractDAO

        
      

        #endregion

        protected override void GetDependendModels(object domainobject, object[] row)
        {
            throw new NotImplementedException();
        }

        public override bool SaveOrUpdateAndCommit(IDomainObject domainObject)
        {
            return base.SaveOrUpdateAndCommit(domainObject);
            //TODO: Fill in other models from here
        }

        public bool SaveOrUpdateAndCommit(IDomainObject mainCustomer, IDomainObject additional)
        {
            SaveOrUpdateAndCommit(mainCustomer);
            
            return true;
        }
    }
}
